<?php
	/*session_start();
	$_SESSION['colorAnswers'][] = $_POST;
	var_dump($_SESSION['colorAnswers']);*/
	session_start();
	require_once("../classes/database.class.php");
	require_once("../includes/define.php");
		
	$bd = new Database(MYSQL_DB_HOST,MYSQL_DB_LOGIN,MYSQL_DB_PASSWORD,MYSQL_DB_NAME);
	$bd->connect();
	$bd->query("INSERT INTO colorAnswers VALUES (NULL, '".$_SESSION['participantSessionId']."', '".$_POST['leftColorName']."', '".$_POST['rightColorName']."', '".$_POST['shapeName']."', '".$_POST['chosenColorName']."', '".$_POST['time']."');");
	$bd->close();
?>